#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLineEdit>
#include <QPushButton>
#include <QInputDialog>
#include "display.h"
#include <QDialog>

namespace Ui {
class MainWindow;
}

#define DEFAULT "default"

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    QString m_name;

private:
    void createActions();
    void createMenus();

    QDialog* GetDialog();

    QLineEdit *edit;

    QAction *clickOK;
    QAction *clickCancel;

public slots:
    void CopyText(QString str) {this->m_name = str;}
    void CancelText() {this->m_name = DEFAULT;}

signals:

};

#endif // MAINWINDOW_H
